<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>欢太官网</title>
    <link rel="stylesheet" href="../css/首页.css" />
    <link
      rel="shortcut icon"
      type="image/x-icon"
      href="//image.oppo.com/content/dam/heytap-brand/assets/favicon.ico"
    />
  </head>
  <body>
    <nav>
      <a href="首页.html"
        ><img
          src="https://image.oppo.com/content/dam/heytap-brand/assets/svg/logo.svg"
          alt=""
      /></a>
      <button><a href="登录.html">请登录</a></button>
      <ul>
        <li><a href="" style="color: black; font-weight: bold">首页</a></li>
        <li><a href="品牌介绍.html">品牌介绍</a></li>
        <li><a href="业务体系.html">业务体系</a></li>
        <li><a href="客户服务.html">客户服务</a></li>
        <li><a href="">中文</a></li>
      </ul>
    </nav>
    <main>
      <div>
        <h1>欢太，伴随万物互融时代而生</h1>
        <p>
          欢太是以互联网为基础的全球综合性服务平台，现已推出包括软件商店、浏览器、云服务在
          内的多项服务和产品，业务覆盖全球40多个国家和地区，拥有超过4.4亿用户。
        </p>
        <a href="品牌介绍.html"><span>了解更多</span></a>
      </div>
    </main>
    <section>
      <h2>产品和服务</h2>
      <article>
        <a href="业务体系.html">
          <img
            src="https://image.oppo.com/content/dam/heytap-brand/assets/png/@2x/bsm1.png?t=20190831"
            alt=""
          />
          <span>商店与游戏</span>
        </a>
        <a href="业务体系.html">
          <img
            src="https://image.oppo.com/content/dam/heytap-brand/assets/png/@2x/bsm2.png?t=20190831"
            alt=""
          />
          <span>内容产品</span>
        </a>
        <a href="业务体系.html">
          <img
            src="https://image.oppo.com/content/dam/heytap-brand/assets/png/@2x/bsm3.png?t=20190831"
            alt=""
          />
          <span>智能服务</span>
        </a>
        <a href="业务体系.html">
          <img
            src="https://image.oppo.com/content/dam/heytap-brand/assets/png/@2x/bsm4.png?t=20190831"
            alt=""
          />
          <span>数字金融服务</span>
        </a>
        <a href="业务体系.html">
          <img
            src="https://image.oppo.com/content/dam/heytap-brand/assets/png/@2x/bsm5.png?t=20190831"
            alt=""
          />
          <span>用户服务</span>
        </a>
      </article>
      <aside>
        <a href="业务体系.html">了解更多</a>
      </aside>
      <div class="tel">官方客服电话:&nbsp;&nbsp;&nbsp;4001999666</div>
    </section>
    <footer>
      <div class="left">
        <p>联系我们</p>
        <a href="客户服务.html">客户服务</a>
      </div>
      <div class="right">
        <p>法务信息</p>
        <a href="">侵权投诉政策</a>
        <a href="">隐私协议</a>
        <a href="">欢太服务个人信息保护声明</a>
        <a href="">数据主体权利平台</a>
      </div>
      <span>©2021 HeyTap 版权所有 粤ICP备14012291号</span>
    </footer>

    <input type="button" value="^" id="btn" />
    <script>
        // 模拟下拉
        var oInput = document.querySelector("input")
        var oSpan = document.querySelector("span")
        var oUl = document.querySelector("ul")
        var aList = oUl.children

        oSpan.onclick = function(e){
            var evt = e || event;
            oUl.style.display = "block"
            evt.stopPropagation()
        }
        for(var i = 0; i < aList.length; i++){
            aList[i].onclick = function(){
                oInput.value = this.innerText;
                oUl.style.display = "none"
            }
        }
        document.onclick = function(){
            oUl.style.display = "none"
        }
    </script>
    <script>
      let btn = document.querySelector("#btn");
      window.onscroll = function () {
        let scrollTop =
          document.documentElement.scrollTop || document.body.scrollTop;
        if (scrollTop >= 300) {
          btn.style.display = "block";
        } else {
          btn.style.display = "none";
        }
      };
      let timer = null;
      btn.onclick = function () {
        clearInterval(timer);

        timer = setInterval(() => {
          let iCur =
            document.documentElement.scrollTop || document.body.scrollTop;
          let iSpeed = -iCur / 4;
          iSpeed = Math.floor(iSpeed);
          document.documentElement.scrollTop = document.body.scrollTop =
            iCur + iSpeed;
          if (iCur == 0) {
            clearInterval(timer);
          }
        }, 20);
      };
    </script>
  </body>
</html>
